package laba8;

/**
 *
 * @author yakimovich
 */
public class ClassLoaderDemo {

    /**
     * Demonstration of the PathClassLoaderImpl.
     *
     * @param args
     * @throws Exception
     */
    public static void main(String[] args) throws Exception {
        PathClassLoaderImpl loader = new PathClassLoaderImpl();
        loader.setPath(".");
        Class<?> clazz =
                loader.loadClass("laba8.CyclicItemImpl");
        System.out.println("Loaded: " + clazz);
        Object instance = clazz.newInstance();
        clazz.getMethod("showDetails").invoke(instance);

    }
}
